class Father:
    def fun1(self):
        print('Father')


# 继承Father类
class Son(Father):
    def __init__(self,name):
        self.name = name

    def fun2(self):
        print('Son')


abc = Son('Ax')
abc.fun1()
abc.fun2()
print(abc.name)